package stream;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class Domain implements Serializable {
    private static final long serialVersionUID = 7626838566263307410L;
    private String supplierName;
    private String supplierCode;
    private String id;
    private String name;


    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Domain that = (Domain) o;
        return Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
